# 1.定义一个变量 age = 22;
# 2.定义一个变量 name = 自己名字;

# 打印如下格式语句"我叫xxx,今年xx岁,来自xx市,爱好有xxx"
age = 25
name = "张三"
city = "曲靖"
hobby = '打游戏,骑行,摄影'

# f字符串
print(f"我叫{name},今年{age}岁,来自{city}市,爱好有{hobby}")

# format格式化
print("我叫{},今年{}岁,来自{}市,爱好有{}".format(name, age, city, hobby))

# 参数拼接
print("我叫", name, ",今年", age, "岁,来自", city, "市,爱好有", hobby, sep='')
